<?php
		$overall_score = get_post_meta(get_the_ID(), 'reedwan_overall_score', true);
		$review_summary = get_post_meta(get_the_ID(), 'reedwan_summary', true);
		$review_critera_1 = get_post_meta(get_the_ID(), 'reedwan_critera_1', true);
		$critera_1_score = get_post_meta(get_the_ID(), 'reedwan_critera_1_score', true);
		$review_critera_2 = get_post_meta(get_the_ID(), 'reedwan_critera_2', true);
		$critera_2_score = get_post_meta(get_the_ID(), 'reedwan_critera_2_score', true);
		$review_critera_3 = get_post_meta(get_the_ID(), 'reedwan_critera_3', true);
		$critera_3_score = get_post_meta(get_the_ID(), 'reedwan_critera_3_score', true);
		$review_critera_4 = get_post_meta(get_the_ID(), 'reedwan_critera_4', true);
		$critera_4_score = get_post_meta(get_the_ID(), 'reedwan_critera_4_score', true);
		$review_critera_5 = get_post_meta(get_the_ID(), 'reedwan_critera_5', true);
		$critera_5_score = get_post_meta(get_the_ID(), 'reedwan_critera_5_score', true);
		
?>
				<?php if($overall_score != 0): ?>
						<div class="review">
							<div class="review-summary">
							<div class="overall-score">
								<div class="title-score"><?php _e('Overall Score', 'unicorn'); ?></div>
								<div class="final-score"><?php echo $overall_score;?> %</div>
							</div>	
							<?php if (stripslashes ($review_summary != '')) { ?>
								<div class="summary">						
									<p> <?php echo stripslashes($review_summary);?></p>						
								</div>
							<?php } ?>	
							</div>
							<?php if (($critera_1_score != 0)||($critera_2_score != 0)||($critera_3_score != 0)||($critera_4_score != 0)||($critera_5_score != 0)){ ?>
							<div class="detail-criteria">
							<?php if ($critera_1_score != 0) { ?>
								<div class="criteria">
									<span class="criteria-top" style="width:<?php echo $critera_1_score;?>%"><span class="description"><?php echo $review_critera_1; ?></span></span>
									<span class="criteria-score"><?php echo $critera_1_score;?>%</span>
								</div>
							<?php } ?>				
					
							<?php if ($critera_2_score != 0) { ?>
								<div class="criteria">
									<span class="criteria-top" style="width:<?php echo $critera_2_score;?>%"><span class="description"><?php echo $review_critera_2; ?></span></span>	
									<span class="criteria-score"><?php echo $critera_2_score;?>%</span>									
								</div>
							<?php } ?>				
					
							<?php if ($critera_3_score != 0) { ?>
								<div class="criteria">
									<span class="criteria-top" style="width:<?php echo $critera_3_score;?>%"><span class="description"><?php echo $review_critera_3; ?></span></span>	
									<span class="criteria-score"><?php echo $critera_3_score;?>%</span>
								</div>	
							<?php } ?>				
					
							<?php if ($critera_4_score != 0) { ?>
								<div class="criteria">	
									<span class="criteria-top" style="width:<?php echo $critera_4_score;?>%"><span class="description"><?php echo $review_critera_4; ?></span></span>
									<span class="criteria-score"><?php echo $critera_4_score;?>%</span>		
								</div>
							<?php } ?>				
					
							<?php if ($critera_5_score != 0) { ?>
								<div class="criteria">
									<span class="criteria-top" style="width:<?php echo $critera_5_score;?>%"><span class="description"><?php echo $review_critera_5; ?></span>	</span>
									<span class="criteria-score"><?php echo $critera_5_score;?>%</span>		
								</div>
							<?php } ?>	
							</div>
							<?php } ?>
						</div>
			<?php endif; ?>